{extend name="admin@index_layout"/}
{block name="main"}
<div class="layui-card">
<!--    <div class="layui-card-header">提现记录</div>-->
    <div class="layui-card-body">
        <table class="layui-hide" id="currentTable" lay-filter="currentTable">
<!--               data-auth-add="{:$auth->check('business.ebusiness/add')}"-->
<!--               data-auth-edit="{:$auth->check('business.ebusiness/edit')}"-->
<!--               data-auth-delete="{:$auth->check('business.ebusiness/del')}"-->
        </table>
    </div>
</div>

<!--<script type="text/html" id="barTool">-->
<!--    <a data-open='{:url("verify")}?id={{ d.id }}'-->
<!--       class="layui-btn layui-btn-xs layui-btn-normal {:$auth->check('business.ebusiness/verify')?'':'layui-hide'}"-->
<!--       title="商家审核">商家审核</a>-->
<!--</script>-->

<!--操作模板-->

{/block}
{block name="script"}
<script>
    layui.use('yznTable', function () {
        var table = layui.yznTable;
        var init = {
            table_elem: '#currentTable',
            table_render_id: 'currentTable',
            add_url: "{:url('add')}",
            edit_url: "{:url('edit')}",
            delete_url: "{:url('del')}",
        };
        table.render({
            init: init,
            autoWidth: true,
            toolbar: ['refresh',],
            url: '{:url("fdetail")}?business_id={$business_id}',
            cols: [
                [
                    {field: 'id', width: 5, title: 'ID'},
                    {field: 'money',align: "center", Width: 10, title: '提现金额',search: false},
                    {field: 'true_money',align: "center", Width: 10, title: '实际到账',search: false},
                    {field: 'commission',align: "center", Width: 10, title: '提现手续费率',search: false},
                    {field: 'tixian_name',align: "center", Width: 10, title: '提现人',search: false},
                    {field: 'tixian_type',align: "center", Width: 12, title: '提现方式',templet: function (d) {
                            if (d.tixian_type == 1) {
                                return '<span style="color: red">银行</span>';
                            } else if (d.tixian_type == 2) {
                                return '<span style="color:   #00B7EE">支付宝</span>';
                            } else if (d.tixian_type == 3) {
                                return '<span style="color:green ">微信</span>';
                            }
                        },search: false},
                    {field: 'tixian_account',align: "center", Width: 10, title: '提现账号',search: false},
                    {field: 'create_time',align: "center", Width: 15, title: '申请时间',search: 'range'},
                    {field: 'status_time',align: "center", Width: 15, title: '审核时间',search: 'range'},
                ]
            ],
            page: {}
        });
        yznTable.bindevent();
        selectElement2 = document.getElementById('searchFieldset_currentTable');
        selectElement2.classList.remove("layui-hide");
        var element = document.getElementById('layui-input-search');
        element.parentNode.removeChild(element);
    });
</script>
{/block}